<?php
/**
 * Created by PhpStorm.
 * User: Machenike
 * Date: 2019/12/26
 * Time: 20:38
 */

namespace App\Event;


use App\Entity\User;

class UserChangeEvent
{
    //用户注册监听
    public const USER_REG = "event.my.user_reg";
    public const USER_STATISTIC_CHANGE = "event.my.user_statistic_change";


    private $user;

    public function __construct(User $User)
    {
        $this->user = $User;
    }

    /**
     * @return User
     */
    public function getUser()
    {
        return $this->user;
    }

}
